import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

import Demo from '../components/Demo.vue'
import HelloWorld from '../components/HelloWorld.vue'

export const routes: RouteRecordRaw[] = [
  {
    path: '/demo',
    component: Demo
  },
  {
    path: '/hello',
    component: HelloWorld
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router